import {httpGet, httpPost} from '@/utils/request'
import { userInfoParam } from './userInterface'

// 用户信息
export const userInfo = async (params: userInfoParam, config?: {}) => {
  await httpPost('user/info', params, config)
}

// 发送验证码请求体
export const sendVerifyCode = async (params: {}, config?: {}) => {
    await httpPost('user/sendVerifyCode', params, config)
}

// 修改用户信息
export const userEdit = async (params: {}, config?: {}) => {
  await httpPost('/user/edit', params, config)
}

// 修改用户绑定服务
export const bindService = async (params: {}, config?: {}) => {
  await httpPost('user/bindService', params, config)
}
